Skip to content

Vecps Code Maintenance: vecps_plotter Rework#387

Merged
harsimranhs merged 3 commits intomasterfrom
vecpsCodeMaintenance
Apr 10, 2026
Merged

Vecps Code Maintenance: vecps_plotter Rework#387
harsimranhs merged 3 commits intomasterfrom
vecpsCodeMaintenance

Conversation

@edbarriga
Copy link
Copy Markdown
Contributor

This is a major rework for the vecps_plotter program. The code is now more modular and requires less user modification, reducing the need for recompilation. To highlight some of the most important changes:
-The code now parses the info from the fit file into an "amplitude registry" where all the important info is stored
-The user no longer needs to hard-code the amplitudes to be plotted. Now, every amplitude in the fit file will be plotted
-The code has logic that avoids nonphysical amp and sum combinations that would have produced an empty histogram
-The code now accepts user input that was hard-coded such as: running over a single reaction, plotting acceptance correction histograms, plotting background histograms, and producing only ROOT or txt output
-The code now has a rudimentary CSV output

PS I plan to add two features before merging: adding parameters to the text-based output and a helper function in VecPsPlotGenerator to avoid the need to modify the plotter when adding histograms.

@gluex
Copy link
Copy Markdown

gluex commented Mar 23, 2026

…eters will now be written in txt-based outputs
@gluex
Copy link
Copy Markdown

gluex commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

@harsimranhs harsimranhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I, and Edmundo, sat down together. We worked on adapting this code for the two pseudo-scalar system in which it worked (on MC data) with some minor changed to the existing two-pseudo scalar files.

Ultimately, this code works and produces the expected plots.

@harsimranhs harsimranhs merged commit a17fb91 into master Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants